<!DOCTYPE html>
<html>
<head>
    <title>Камень-ножницы-бумага</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f0f0f0;
            margin: 0;
            padding: 0;
        }

        h1 {
            text-align: center;
            color: #333;
        }

        p {
            text-align: center;
            font-size: 24px;
            color: #333;
        }

        form {
            text-align: center;
            margin-top: 20px;
        }

        label {
            font-size: 18px;
            margin-right: 10px;
            color: #333;
        }

        input[type="radio"] {
            margin-right: 20px;
        }

        button[type="submit"] {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

        button[type="submit"]:hover {
            background-color: #45a049;
        }

        nav {
            margin-top: 20px;
            text-align: center;
        }

        nav li {
            display: inline;
            margin-right: 10px;
        }

        nav li a {
            color: #333;
            text-decoration: none;
            font-size: 18px;
            transition: color 0.3s ease;
        }

        nav li a:hover {
            color: #ffcc00;
        }
    </style>
</head>
<body>
    <h1>Rock Paper Scissors</h1>

    @if(isset($result))
        <p>{{ $result }}</p>
    @endif

    <form method="POST" action="{{ route('main.play') }}">
        @csrf
        <label for="rock">Rock</label>
        <input type="radio" name="player_choice" id="rock" value="rock">
        <label for="paper">Paper</label>
        <input type="radio" name="player_choice" id="paper" value="paper">
        <label for="scissors">Scissors</label>
        <input type="radio" name="player_choice" id="scissors" value="scissors">
        <button type="submit">Play</button>
    </form>
    <nav>
        <li><a href="{{ route('main.index') }}">Back</a></li>
    </nav>
</body>
</html>
